package net.sk.china.front.service;

import net.sk.china.front.request.PayRequest;
import net.sk.china.front.request.order.OrderPayRequest;
import net.sk.china.front.response.PayResultResponse;
import net.sk.china.front.response.order.OrderPayResultResponse;

/**
 * PayService 接口
 * +----------------------------------------------------------------------
 * | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2018-2024 聊来All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * +----------------------------------------------------------------------
 * | @Author: 聊来 <18970881148@qq.com>
 * +----------------------------------------------------------------------
 * | DateTime: 2024/6/4 17:37
 * +----------------------------------------------------------------------
 */
public interface PayService {

    /**
     * 微信支付范例
     * @param request 请求对象
     * @return {@code PayResultResponse}
     */
    PayResultResponse demo(PayRequest request);

    /**
     * 订单支付
     * @param orderPayRequest 支付参数
     * @param ip 客户端IP
     * @return {@code OrderPayResultResponse}
     */
    OrderPayResultResponse payment(OrderPayRequest orderPayRequest, String ip);
}
